package com.koron.order.common.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderExecute;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.Date;
import java.util.List;

/**
 * (OrderExecute)表服务接口
 *
 * @author zhouj
 * @since 2021-09-03 16:27:31
 */
public interface OrderExecuteService extends CommonService {

    int insert(SessionFactory factory, OrderExecute orderExecute);

    int insertBatch(SessionFactory factory, List<OrderExecute> orderExecuteList);

    int update(SessionFactory factory, OrderExecute orderExecute);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteOrderExecute(SessionFactory factory, String orderId, String orderExecuteId);

    OrderExecute queryById(SessionFactory factory, String id);

    Date queryMaxFactEndTimeByOrderId(SessionFactory factory, String orderId);

    List<OrderExecute> queryList(SessionFactory factory, OrderExecute orderExecute);

    int insertOrUpdate(SessionFactory factory, OrderExecute orderExecute);

}
